package com.Washer;

import java.util.List;
import java.util.Map;


public interface DormitoryMapper {
	//获得宿舍列表
	public List<Dormitory> getAllDormitory();
	// 根据ID查询宿舍
	public Dormitory getDormitoryByID(int DormitoryID);
	//根据字节查询
	public List<Dormitory> getDormitory(Map paramMap);
	//添加宿舍信息
	public int insertDormitory(Dormitory dormitory);
	// 订单提交时减库存
	public int reduceFreeNumber(Dormitory dormitory);
	// 撤销订单恢复库存
	public int recoverFreeNumber(Dormitory dormitory);
	//删除宿舍信息
	public int deleteDormitory(int dormitoryID);

}
